package org.sabeot.enlistme.utils.exceptions;

public class DatabaseException extends Throwable {

	private String message;
	private ExceptionCategory category;
	
	public DatabaseException(ExceptionCategory category, String message){
		super(message);
		this.category = category;
	}
	
	
	public String getMessage() {
		return message;
	}

	protected void setMessage(String message) {
		this.message = message;
	}

	public ExceptionCategory getCategory() {
		return category;
	}

	protected void setCategory(ExceptionCategory category) {
		this.category = category;
	}
	
	
	
}
